package com.example.demo.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class CreateNewTaskRequest {

    @NotBlank(message = "任务全局唯一ID不能为空")
    private String bizUniqueId;

    @NotNull(message = "数据源ID不能为空")
    private Long dataSourceId;

    @NotBlank(message = "原始数据不能为空")
    private String rawData;

    // isAssigned默认为0，不需要前端传递
    private Integer isAssigned = 0;

    public String getBizUniqueId() {
        return bizUniqueId;
    }

    public void setBizUniqueId(String bizUniqueId) {
        this.bizUniqueId = bizUniqueId;
    }

    public Long getDataSourceId() {
        return dataSourceId;
    }

    public void setDataSourceId(Long dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    public String getRawData() {
        return rawData;
    }

    public void setRawData(String rawData) {
        this.rawData = rawData;
    }

    public Integer getIsAssigned() {
        return isAssigned;
    }

    public void setIsAssigned(Integer isAssigned) {
        this.isAssigned = isAssigned;
    }
}